package cn.cdutetc.foxwatch.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("user")
@Schema(description = "用户信息表")
public class UserInfo implements Serializable {
    @Schema(description = "用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Schema(description = "昵称")
    private String nickName;
    @Schema(description = "用户名")
    private String userName;
    @Schema(description = "用户头像")
    private String avatarUrl;
    @Schema(description = "用户身高")
    private String height;
    @Schema(description = "用户体重")
    private Double weight;
    @Schema(description = "创建时间")
    private LocalDate createTime;
    @Schema(description = "更新时间")
    private LocalDate updateTime;
  @TableField(select = false)
    @Schema(description = "用户密码")
    private String password;
  @TableField(select = false)
    @Schema(description = "用户重复密码")
    private String rePassword;
    @Schema(description = "用户手机号", accessMode = Schema.AccessMode.READ_ONLY)
    private String phone;
    @Schema(description = "用户邮箱")
    private String email;
    @Schema(description = "微信的唯一id")
    private String openid;

}
